# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cryptohazemultiforcer
pkgver=1.31a
pkgrel=2
pkgdesc='High performance multihash brute forcer with CUDA support.'
groups=('blackarch-crypto' 'blackarch-cracker')
url='http://www.cryptohaze.com/multiforcer.php'
license=('custom')
arch=('x86_64')
optdepends=('cuda: cuda support')
source=("http://downloads.sourceforge.net/project/cryptohaze/Cryptohaze-Linux_x64_${pkgver/./_}.tar.bz2"
        "cryptohazemultiforcer")
sha512sums=('9455a1311369a7fd850751c5155e4cfe6887879a5b13b9ca2266420936ccc54dbf51a16063f6c9a5f0c542642e07e16426a0210a919672b76ed3311e84039ebb'
            'e05c8318b6e178d6b3300a233f713d0acf0d7c64505aeaeed5f9713f1e02ed069b27fbb688a96132ecc7f5f599a5c867c2da45f3aa612ab9876075c83d0335b5')

package() {
  cd Cryptohaze-Linux

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/opt/$pkgname"

  cp -a --no-preserve=ownership ./* "$pkgdir/opt/$pkgname/"

  install -m 755 "$srcdir/$pkgname" "$pkgdir/usr/bin"
}

